package com.zyong.design.pattern.template.case1;

/**
 * @program: zyong-design-pattern
 * @ClassName: AbstractTemplateClass
 * @author: zyong
 * @create: 2024-04-18 00:14
 */
public abstract class AbstractTemplateClass {
    public final void template() {
        operate1();
        operate2();
        operate3();
    }

    protected abstract void operate1();

    protected void operate2() {
        System.out.println("operate2");
    }

    protected void operate3() {

    }
}
